package cn.com.nes.site.entity.vo.crm.sale;

import cn.com.nes.site.entity.bo.crm.sale.EnableSaleOrderBO;
import cn.com.nes.site.entity.vo.BaseVO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import javax.validation.constraints.NotNull;

@Data
public class EnableSaleOrderVO extends BaseVO {

    /**
     * 订单ID
     */
    @NotNull(message = "订单ID")
    private Long id;

    public EnableSaleOrderBO convertToEnableSaleOrderBO() {
        EnableSaleOrderBO enableSaleOrderBO = new EnableSaleOrderBO();
        BeanUtils.copyProperties(this,  enableSaleOrderBO);
        return enableSaleOrderBO;
    }
}
